/**
 * @description 是否是对象,any 表示不会做类型检查，unknown类型的数据在之后操作时，需要断言，类型更安全些
 * @param {Unknown} val
 * @returns boolean ，做了类型守卫
 */
// export const isObject = (val: unknown): val is Recordable => {
//   return Object.prototype.toString.call(val) === "[object Object]";
// };

export const isNullOrUndefined = (val: unknown): val is null | undefined => {
  return val === undefined || val === null
}
